<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>Superdance后台管理系统</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="{{ URL::asset('backend/AdminLTE/bootstrap/css/bootstrap.min.css')}}">
        <link rel="stylesheet" href="{{URL::asset('backend/AdminLTE/dist/css/AdminLTE.min.css')}}">
    </head>
    <body class="hold-transition login-page" style="background:#d2d6de">
        <div class="login-box">
            <div class="login-logo">
                <a href="{{url('admin/login')}}">Superdance管理系统</a>
            </div>
            <div class="login-box-body">
                <p class="login-box-msg"></p>
                <form action="{{url('admin/login')}}" id="adminLogin" method="post">
                    {{ csrf_field() }}
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" name="username" id="username" placeholder="用户名" value="{{old('role_name')}}">
                        <span class="glyphicon glyphicon-user form-control-feedback"></span>
                        @if ($errors->has('username'))
                        <span class="help-block">
                            <strong style="color: #a94442;">{{ $errors->first('username') }}</strong>
                        </span>
                        @endif
                    </div>
                    <div class="form-group has-feedback">
                        <input type="password" class="form-control" name="password" id="password" placeholder="密码">
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                        @if ($errors->has('password'))
                        <span class="help-block">
                            <strong style="color: #a94442;">{{ $errors->first('password') }}</strong>
                        </span>
                        @endif
                        @if(session('errorMsg'))
                        <span class="help-block">
                            <strong style="color: #a94442;">{{ session('errorMsg') }}</strong>
                        </span>
                        @endif
                    </div>
                    <div class="row">
                        <div class="col-xs-8">
                            <label>
                                <input type="checkbox" name="rememberPassword" checked value="true"> 记住密码？
                            </label>
<!--                            <label>
                                <a href="#"><b>找回密码</b></a><br>
                            </label>-->
                        </div>
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">登 录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <script language="JavaScript" src="{{URL::asset('backend/AdminLTE/plugins/jQuery/jquery-2.2.3.min.js')}}"></script>
        <script language="JavaScript" src="{{ URL::asset('backend/layer/layer/layer.js') }}"></script>
    </body>
</html>
